CC       = gcc
CFLAGS   = -Wall  -ggdb3 -std=c99
LDFLAGS  =
VULNLD   = -static -D_FORTIFY_SOURCE=0 -fno-pie -Wno-format -Wno-format-security -fno-stack-protector -z norelro -z execstack 
LIBS     = 
DEFS     =
GNUDEF   = 
LPTHREAD = 
LIBNAME  = 
SOURCES  = sprintf.c sscanf.c 
OBJECTS  =$(SOURCES:.c=.o) 
TESTFILS = 
VPATH    =
EXE      =$(OBJECTS:.o=.exe)
VULS     =$(OBJECTS:.o=.xxx)


all:$(EXE)

vuln:$(VULS)

%.o: %.c
	$(CC) $(CFLAGS) -c $<

%.exe: %.o
	$(CC) $(LDFLAGS) $< -o $@

%.xxx: %.o
	$(CC) $(VULNLD) $< -o $@

clean:
	-rm $(EXE) $(VULS)

.PHONY: clean
	
